import { SelectOption } from 'naive-ui'

const list: SelectOption[] = [
  {
    label: '添加',
    value: 'add'
  },
  {
    label: '编辑',
    value: 'edit'
  }
]

export default list

export function getTiggerName(value: string) {
  const info = list.find((el: SelectOption) => el.value === value)
  return info?.label || value
}
